package com.bawei.glidetest

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bawei.glidetest.databinding.ActivityMainBinding
import com.bumptech.glide.Glide

class MainActivity : AppCompatActivity() {
    private lateinit var activityMainBinding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        activityMainBinding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(activityMainBinding.root)
        //使用时注意
        GlideApp.with(this)
            .load("https://img-blog.csdnimg.cn/26f865957b4543e4af1c6b2bcab246db.png")
            .into(activityMainBinding.iv)

    }
}